#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>
#include <string.h>
#define N 2
#define M N + 1
#define NUM (M + 1) * M / 2
int f(int n)
{
	static int i = 1;
	if (n >= 5)
		return n;
	n = n + i;
	i++;
	return f(n);
}

int main()
{
	printf("%d", f(1));
	return 0;
}